widget factory: Adapt to new scrolled window behavior
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2016 02:16:11 +0000 (22:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2016 02:16:11 +0000 (22:16 -0400)
Set a max-content-width on some of the scrolled windows to
keep things looking mostly the same, now that GtkScrolledWindow
passes along the natural size of its child.

demos/widget-factory/widget-factory.ui

index 3ee3c32c2663349b7adf1b896b3d12c91f2bb9d8..3d77332084615a4963ca7a4f9294209e47d925bd 100644 (file)
@@ -1386,6 +1386,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <property name="can_focus">1</property>
                             <property name="vscrollbar_policy">always</property>
                             <property name="shadow_type">in</property>
+                            <property name="max_content_width">100</property>
                             <child>
                               <object class="GtkTreeView" id="treeview1">
                                 <property name="visible">1</property>
@@ -1466,6 +1467,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <property name="visible">1</property>
                             <property name="can_focus">1</property>
                             <property name="shadow_type">in</property>
+                            <property name="max_content_width">100</property>
+                            <property name="max_content_height">100</property>
                             <child>
                               <object class="GtkTextView" id="textview1">
                                 <property name="visible">1</property>
@@ -2766,7 +2769,7 @@ microphone-sensitivity-medium-symbolic</property>
                                     <property name="can_focus">1</property>
                                     <property name="shadow_type">in</property>
                                     <property name="margin-top">6</property>
-                                    <property name="height_request">226</property>
+                                    <property name="max-content-width">100</property>
                                     <child>
                                       <object class="GtkIconView" id="iconview1">
                                         <property name="visible">1</property>